<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>菜单编辑</title>
<link rel="stylesheet"
	href="${basePath }/admin/bower_components/bootstrap/dist/css/bootstrap.min.css">
</head>

<body>
	<div class="container-fluid">
		<form class="form-horizontal" action="${basePath}/admin/edit" method="post">
		<input type="hidden" name="id" value="${(menu.id)!''}">
              <div class="box-body">
                <div class="form-group">
                  <label for="inputName" class="col-sm-2 control-label" >菜单名称</label>
                  <div class="col-sm-10">
                    <input type="text" class="form-control" required="required" id="inputName" name="name" placeholder="输入菜单名称" value="${(menu.name)!''}">
                  </div>
                </div>
             
                 <div class="form-group">
                  <label for="inputUrl" class="col-sm-2 control-label" >菜单路径</label>
                  <div class="col-sm-10">
                    <input type="text" class="form-control" id="inputUrl" placeholder="菜单路径" required="required" value="${(menu.url)!''}" name="url">
                  </div>
                </div>
                 
                 <div class="form-group">
                  <label for="inputfid" class="col-sm-2 control-label" >父编号</label>
                  <div class="col-sm-10">
                    <!--
                    <input type="text" class="form-control" id="inputFid" placeholder="输入父菜单" required="required" value="${(menu.fid)}" name="fid">
                    -->
                   
                    <select name="fid" class="form-control">
                    	<option value="0">一级菜单</option>
                     <#list menuDtos as dto>
						<option value="${(dto.id)}">${dto.name}</option>	
					</#list>
					
					</select>
					
                  </div>
                  
                </div>
                <div class="form-group">
                  <div class="col-sm-offset-2 col-sm-10">
                    <button type="reset" class="btn btn-default">取消</button>
                <button type="submit" class="btn btn-info pull-right">保存</button>
                  </div>
                </div>
              </div>
         
            </form>
	</div>
	
<!-- jQuery 3 -->
	<script
		src="${basePath}/admin/bower_components/jquery/dist/jquery.min.js"></script>
		<!-- Bootstrap 3.3.7 -->
	<script
		src="${basePath}/admin/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
</body>
</html>